Having trouble using repeated regexp on strings with EOLs. |
Re: Regexp on strings with EOLs |
Re: Regexp on strings with EOLs llandale - Thu Jan 24 15:20:54 EST 2013 I don't think there is...I've always chopped up the processing of a string with EOLs with a loop like the following:
Regexp aLine = regexp ".*"
while (aLine(theString) && (theString != ""))
{
string theLine = theString[match 0]
// process theLine here
theString = theString[((end 0)+2):] // move past the newline
}
|